<template>
    <div>
        御剑乘风来,除魔天地间!===brother====妹妹有话对我说：==={{bb}}
        <button @click="borther">哥哥</button>
    </div>
</template>
           
<script>

import {Bus} from  '@/api/Bus'
export default {
  data() {
    return {
      bb: '',
      bb2: '老妹，我给你介绍一个男朋友吧'
    }
  },
  created() {
    console.log(this, 7777)
  },
  mounted() {
    //this.$Bus.$on('tob', res => {
    Bus.$on('tob', res => {
      console.log(res, 8888)
      this.bb = res
    })
  },
  methods: {
    borther() {
        //this.$Bus.$emit('tos',this.bb2)
        Bus.$emit('tos',this.bb2)
    }
  }
}
</script>
<style scoped>
</style>